
***Stata Syntax for Cluster-Robust Variance Estimation (CRVE) Random Effects Meta-Regression 
//Note 1: .0186 is Tau-Squared calculated from the 26 sample studies.
//Note 2: This study winsorizes the values of the dependent variable above the 99th percentile due to outliers in the variable (i.e., effect sizes). 

gen constant = 1
gen var= 1/( samplesize -3)
gen totalvar2 = var + .0186
gen resterr1 = sqrt(totalvar2)
gen x0b= 1/resterr1
gen nonpro = nonprofit / resterr1
gen busi =  business / resterr1
gen mixed1 = mixed / resterr1
gen intergover = intergovernmentalinvolvement / resterr1
gen colla_measur = collaborationmeasurement / resterr1
gen perfor_type = performancetype / resterr1
gen perfor_measure = performancemeasurement / resterr1
gen country1 = country / resterr1
winsor2 zr , cuts(0 99)
gen Ywb_w = zr_w / resterr1

**Model 1
reg Ywb_w nonpro busi mixed1 intergover colla_measur x0b, noc vce (cluster articleno) 

**Model 2 
reg Ywb_w nonpro busi mixed1 intergover colla_measur perfor_type perfor_measure x0b, noc vce (cluster articleno) 

**Model 3
reg Ywb_w nonpro busi mixed1 intergover colla_measur perfor_type perfor_measure country1 x0b, noc vce (cluster articleno) 


***Collinearity Diagnostics
cor nonpro busi mixed1 intergover colla_measur perfor_type perfor_measure country1

collin nonpro busi mixed1 intergover colla_measur perfor_type perfor_measure country1

****Stata Syntax for Figure 2
//Note: This study drops four outliers to make the presentation of the figure more useful and clear.

drop if effectno==33
drop if effectno==138
drop if effectno==139
drop if effectno==140
drop if effectno==141
confunnel zr_w sezr